package org.csu.code.api.service;

import org.csu.code.api.common.CommonResponse;
import org.csu.code.api.entity.FarmComment;
import org.csu.code.api.entity.ItemComment;
import org.csu.code.api.entity.LikeFarmComment;
import org.csu.code.api.entity.LikeItemComment;
import org.csu.code.api.vo.AccountVO;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CommentService {
    CommonResponse<FarmComment> selectFarmComment(int commentId);

    CommonResponse<ItemComment> selectItemComment(int commentId);

    CommonResponse<String> likeFarmComment(int commentId, HttpServletRequest request);

    CommonResponse<String> likeItemComment(int commentId, HttpServletRequest request);

    CommonResponse<List<LikeFarmComment>> selectlikefarmComments(HttpServletRequest request);

    CommonResponse<List<LikeItemComment>> selectlikeItemComments(HttpServletRequest request);

    CommonResponse<String> addFarmComments(FarmComment farmComment,HttpServletRequest request);

    CommonResponse<String> addItemComments(ItemComment itemComment,HttpServletRequest request);

    CommonResponse<String> updateFarmComments(FarmComment farmComment,HttpServletRequest request);

    CommonResponse<String> updateItemComments(ItemComment itemComment,HttpServletRequest request);

    CommonResponse<List<FarmComment>> selectFarmCommentsByFarmId(int farmId);

    CommonResponse<List<ItemComment>> selectItemCommentsByFarmId(int itemId);
}
